package com.peng.design.rule;

/**
 * NameRule
 *
 * @author lupeng
 * Created on 2022-03-22
 */
public class AgeRule implements Rule<Person> {

    @Override
    public boolean execute(Person person) {
        return person.getAge() > 20;
    }
}
